EMT Practice Test

1. Question Content...


Question List

Question1: Which of the following correctly describes positive characteristic of unit tests?

Question2: When using a process-compliant approach to testing a safety-critical project what is an important aspect of test automation?

Question3: Which requirements engineering technique would BEST identify how different groups of users may interact with a system, helping to identify gaps and inconsistencies in a user story-' SELECT ONE OPTION

Question4: When test cases are re-run after refactoring, what should always be verified'?

Question5: You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public da»s Oddorfven { public state void mair^Strcg [ | args) ( Scarcer read - new ScanrerfSystem inje System out prim ('Pease enter a rxmber'i; int Number * reader nextfntO, if(Number^2»»0) System out prrrtln "your input number 'Number * is even ).
else
System out prntirfyour input number 'Number * is odd*);
)
}
You are Qj>ded by '.he following checklist
*All variables must start with a Capital letter
*All output messages must start with a Capita letter
*There must De a comment bne en pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION

Question6: "As the leader of the marketing department, I want to have a content management system so that my employees can edit and provide quality content to the readers" Which of the following requirements engineering techniques would be the MOST effective for identifying and prioritizing user stories for the given Epic?

Question7: You have been given the following story
As a shopper
I want to scan my membership card
So that I get all the discounts I'm entitled to receive
Which of the following is the correct use of BDD to design test scenarios?

Question8: Which option below BEST explains the value of a test charter in exploratory testing"5 SELECT ONE OPTION

Question9: You have been asked to supply the data file for a data-driven test automation script that will be used to test the following story:
As a customer I want to be told how many items I need to purchase, so I can receive free shipping You have been told the automation will verify whether or not the free shipping message is displayed. Which of the following columns should appear in your data file to support the automated testing of this story?

Question10: The challenges described below are of test automation in agile settings or agile projects. Which is the correctly described one?

Question11: You are working on a project to develop an application that allows users to collaborate via bespoke, online whiteboards. The first release, delivering core functionality, highlighted misunderstandings of the user stories between testers, developers and the product owner during sprint development Since that release, the developers have agreed to implement a TDD approach for future software development.
Creation of the product backlog for the second release is underway and you have recommended to the project stakeholders that an atdd approach be adopted for the backlog's user stories. What would be a GOOD REASON for making this recommendation?
SELECT ONE OPTION

Question12: Which of the following is an example of how continuous testing facilitates continuous delivery?

Question13: You are defining the test approach for an Agile project that is developing a system that will control traffic lights at busy road junctions based on input from sensors that measure traffic density and flow rates on the roads leading to the junctions. It i s a safety-critical application but. because of the skill and experience of the project team, a risk assessment has determined that its risk level is low.
which option in the table below represents the BEST test approach for this release?
Key to symbols
+ (highl y recommended)
+ (recommended)
o (neutial / optional)
- (not recommended) - (not to be used)
Option NumberTest AutomationExploratory Testing(manual) Black-box testing
1++++
2-
+
34-4-+
40+++
SELECT ONE OPTION

Question14: You are testing a new feature in the current iteration. The feature is supposed to take the input of a name and return the number of characters in the name. This information is used by another feature that will determine the size needed on a form. The acceptance criteria state the following
1) a name of up to 30 characters should be accepted
2) standard error processing should be in place to limit user errors
The developers are using TDD and you have asked to see their tests. This is what they gave you

When you run your manual tests you are finding that when you use the following inputs you get the associated results:
From these results what can you conclude about the TDD process?

Question15: Why might static analysis be used on an Agile project'
SELECT ONE OPTION

Question16: Which option below describes the BEST approach for testing a Medium risk mission- or safety-critical system?
SELECT ONE OPTION

Question17: You have received this BDD test
Given that a customer enters the correct PIN When they request to make a withdrawal And they have enough money in their account Then they will receive the money And a receipt Which of the following is the user story that best fits this BDD test?

Question18: As a tester on an Agile team you have been given the following user story to analyze As a medical professional I want to see the availability of operating rooms So I can schedule surgeries as needed You have talked with the product owner and she expressed some concern over the term "medical professional" You have looked into this and found that doctors want to schedule their surgeries but the hospital administrator does not want them to have this ability At this point what should you do to try to resolve this issue?

Question19: What level of automation testing should be included in the production deployment process when continuous deployment is used?

Question20: Which option describes a good practice when applying test automation for a Regression-averse test approach?
SELECT ONE OPTION

Question21: A unit test should be isolated Which option correctly describes the meaning of 'isolated' as a characteristic of a unit test?
SELECT ONE OPTION
Whenever it is run under the same conditions, it should produce the same results.

Question22: In order to create a shareable testing service from server or network traffic log data, which of the following types of tool would you use?
SELECT ONE OPTION

Question23: An increased proportion of automated test coverage often leads to a greater degree of manual testing that follows reactive strategies, because:

Question24: Consider the following section of pseudocode

Display "You exceeded the number of tries to enter a password. Your account is now locked. Call customer.

For this section of code, which of the following issues should be identified during a code review?
1. Variables have not been properly defined with meaningful names
2. There are unused variables defined
3. Divisors are not tested for zero
4. Loop counters are not properly initialized
5. There are endless loops
6. There are statements within the loop that should be outside the loop

Question25: You have been asked to supply the list of keywords for a keyword-driven test automation script that will be used to test the following story As a customer I want to be able to add and delete items from my shopping carl, so that I can buy the right number of items and still get free shipping on some of the items The automation will add and delete items from a customer's shopping carl and will then verify that the total shipping cost is correct The test automation library has a large set of keywords that have been coded to support this ecommerce site Which of the following is the smallest set of keywords that contains the ones needed to support testing this story?

Question26: The F in the mnemonic FIRST stands for Fast Which option correctly states the meanings of the other four letters (IRST)?
SELECT ONE OPTION

Question27: Why is it important to refactor test cases to make them easier to understand?

Question28: A new Payroll system calculates the amount of tax that each employee must pay (TaxToPay) on their gross monthly salary (in (), and the net salary (NetSal) that they will receive after that amount of tax has been deducted It also calculates the amounts of tax (TaxPdYTD) and net salary (SalPdYTD) paid in the year to date (YTD) by adding them to the stored amounts from last month (for month 1 these will be zero), inputs Include Employee id (Empid) and Gross Salary this month (GrossSal). Tax Rate is looked up on the key of Employee Id, the amounts of tax and net salary paid in the year to date are looked up on the key of (Employee Id and
[month * 1]) except that for month 1 they will be zero.
if both employees were paid the same in month 1 as in the current month 2. for which tax has now to be calculated, which data-driven input and expected output table is correct for this situation?
Table 1
MonthEmpidGrossSalTaxRateTaxToPayNetSalTaxPdYTD
212000153001700600
222200204401760880
Table 2
MonthEmpidGrossSalTaxRateTaxToPayNetSalSalPdYTD
2120000.153001700600
2222000.24401760880
Table 3
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
11200030017006003400
12220044017608803520
Table 4
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
21200030017006003400
22220044017608803520
SELECT ONE OPTION

Question29: You are working for an organization that has implemented CI and is struggling to get the automated tests to run on each build because of time limitation. On average, there are three ad hoc builds per day one scheduled build overnight one scheduled build on Friday nights and one build that is conducted on the Thursday night before the end of the sprint on the second Friday. There are four sets of tests highpriority medium priority low priority, nonfunctional. The non-functional tests must be run in the integrated stage environment whereas the other tests can be run in any of the test environments In addition to just the execution time of the tests it has also been noted that reviewing the results of the tests take about two hours per set of tests Given this information which of the following is the most efficient and effective approach to test automation execution?

Question30: Which statement is correct regarding the use of exploratory testing for safety critical systems?
SELECT ONE OPTION

Question31: What is a virtualized service?

Question32: Which statement correctly describes service virtualization''
SELECT ONE OPTION

Question33: Why could test cases need to be refactored in an Agile project?
SELECT ONE OPTION

Question34: An enhancement to a Social Media application allows for the creation of new Groups. Any number of existing application members can be added to a Group. An attempt to add a non-existent member of the application to a Group will result in an error, as will an attempt to add the same member twice. Members can be removed from an existing Group. An existing Group can be deleted but only if there are no current members attached to it.
Which one of the following Keyword-driven input tables provides the BEST test coverage of this enhancement?
Table 1
KeywordGroup IdMember Id
Create.GroupGroup3
Add_MemberGroup3@Member1
Add.MemberGroup3(a)Member2
Delete_GroupGroup3
Remove.MemberGroup3@Memberl
Remove_MemberGroup3@)Member2
Delete.GroupGroup3
Result
Group created
Member added to Group
Member added to Group
Error - Group not empty
Member removed from group
Member removed from group
Group deleted
Table 2
KeywordGroup IdMember IdResult
Create.GroupGrouplGroup created
Add.MemberGrouplMember4Error - member does not exist
Add.MemberGroupl(©MemberlMember added to Group
Delete.GroupGrouplError - Group not empty
Remove_Member@Member 1Member removed from group
Delete.GroupGrouplGroup deleted
Table 3
KeywordGroup IdMember IdResult
Create.GroupGroup3Group created
Add.MemberGroup3Member9Error - member does not exist
Add.MemberGroup3(MemberlMember added to Group
Add_MemberGroup 3(MemberlError - member already in group
Delete.GroupGroup3Error - Group not empty
Remove-MemberGroups(Member 1Member removed from group
Delete.GroupGroupsGroup deleted
Table 4
KeywordGroup IdMember IdResult
Create.GroupGrouplGroup created
Add.MemberGroupl@Member3Member added to Group
Add.MemberGroupl@Member3Error - member already in group
Delete.GroupGrouplError - Group not empty
Remove.MemberGroupl@Member1Member removed from group
Delete.GroupGrouplGroup deleted
SELECT ONE OPTION

Question35: Which of the following is a primary goal for refactoring test cases?

Question36: Which option correctly states the sequence of tasks to be undertaken when re-factoring test cases?
SELECT ONE OPTION

Question37: You are working in a project that developed a product that has reached a stable state and is deployed on different HW configurations all over Europe.
You management decided to use your project as Proof of Concept for adopting CI as a new way of working. The POC was implemented on one set of hardware and was successful.
Which of the following actions is a good next step?

Question38: You have been working to define acceptance tests for a story. You think this will help tailor your testing. You have asked the product owner to be involved as well. You are currently looking at this story:
As a pet owner
I want to purchase food online
So that it can be delivered to my house when I need it
Which of the following is the preferred way to solicit information from the product owner to better understand what will be "acceptable?

Question39: Which option correctly slates a recommended guideline for formulating 8DD scenarios0 SELECT ONE OPTION